package cn.codergege.demo.config

import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.PropertySource

@Configuration
@ComponentScan("cn.codergege.demo")
// 配置在 @Component 那里也可以, value 是 String[]
// 如果配置文件在包路径下, 那么应该是 classpath:/cn/codergeg/somepackage/xx.properties
@PropertySource(value = 'classpath:application.properties',
        encoding = 'UTF-8')
class AppConfig {
}
			